<meta charset="UTF-8">
<div id="roleList" class="unswift-module-page">
	<form id="roleListSearchForm" class="layui-form layui-row layui-col-space16" style="width:100%;">
		<div class="layui-col-md4">
			<div class="layui-input-wrap">
				<input type="text" name="name" placeholder="角色编码/名称" class="layui-input">
			</div>
		</div>
		<div class="layui-col-md4">
			<span class="layui-btn" onclick="$.module.currModule.search();">查询</span>
			<span class="layui-btn layui-btn-primary" onclick="$.module.currModule.clear();">重置</span>
		</div>
	</form>
	<table class="layui-hide" id="roleListTable" lay-filter="roleListTable"></table>
</div>
<script type="text/html" id="roleListToolbar">
	<div class="layui-btn-container">
    	<span auth="system.role.create" lay-event="add" class="layui-btn layui-btn-sm" title="新建"><i class="layui-icon layui-icon-addition"></i></span>
    	<span auth="system.role.update" lay-event="edit" class="layui-btn layui-btn-sm layui-bg-blue layui-btn-disabled" title="编辑"><i class="layui-icon layui-icon-edit"></i></span>
    	<span auth="system.role.updateAuthorize" lay-event="authorize" class="layui-btn layui-btn-sm layui-bg-orange layui-btn-disabled" title="授权"><i class="layui-icon layui-icon-auz"></i></span>
    	<span auth="system.role.delete" lay-event="delete" class="layui-btn layui-btn-sm layui-bg-red layui-btn-disabled" title="删除"><i class="layui-icon layui-icon-delete"></i></span>
    	<span lay-event="lookLogger" class="layui-btn layui-btn-sm layui-bg-cyan layui-btn-disabled" title="日志列表"><i class="layui-icon layui-icon-log"></i></span>
	</div>
</script>
<script type="text/html" id="roleListRowToolbar">
	<div class="layui-clear-space">
		<a class="layui-btn layui-btn-xs layui-bg-blue" auth="system.role.update" lay-event="edit" style="display:{{= d.isAdmin == 1 ? "none" : "" }};"><i class="layui-icon layui-icon-edit"></i>编辑</a>
		<a class="layui-btn layui-btn-xs layui-bg-orange" auth="system.role.updateAuthorize" lay-event="authorize" style="display:{{= d.isAdmin == 1 ? "none" : "" }};"><i class="layui-icon layui-icon-auz"></i>授权</a>
		<a class="layui-btn layui-btn-xs layui-bg-red" auth="system.role.delete" lay-event="delete" style="display:{{= d.isAdmin == 1 ? "none" : "" }};"><i class="layui-icon layui-icon-delete"></i>删除</a>
	</div>
</script>
<script type="text/html" id="roleListStatusToolbar">
	<input type="checkbox" name="status" value="{{= d.id }}" title="|" lay-skin="switch" lay-filter="roleStatus" {{= d.status == 1 ? "checked" : "" }} {{= d.isAdmin == 1 ? "disabled" : "" }}>
</script>
<script type="text/javascript" src="/js/admin/system/role.js"></script>